/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.feign;
import io.renren.commons.tools.constant.ServiceConstant;
import io.renren.commons.tools.utils.Result;
import io.renren.dto.SysRegionDTO;
import io.renren.feign.fallback.RegionFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户接口
 *
 * @author Mark sunlightcs@gmail.com
 */
@FeignClient(name = ServiceConstant.RENREN_ADMIN_SERVER, contextId = "RegionFeignClient", fallbackFactory = RegionFeignClientFallbackFactory.class)
public interface RegionFeignClient {

    /**
     * 根据用户ID，获取用户信息
     */
    @GetMapping("sys/region/getById")
    Result<SysRegionDTO> getById(@RequestParam("id") Long id);
}